// Filename:    AutoJob.h
// Author:      John Van Drasek
// Date:		3/11/2011
// Description:


#pragma once


// Includes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include <limits.h>

// Globals
#ifdef WIN32
#define ENOBUFS WSAENOBUFS // This define is needed to convert from BSD code
#endif

//////////////////////////////////////////////////////////////////////////////
// Globals specific to list.h!! but shared by entire programs
//  compiler BUG? http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg00606.html
//         TODO: This is not right! g++ is complaining:
//         - error: array bound is not an integer constant
//         when NAMESIZE is referred to by a global variable in a file, 
//         or, when it is part of a member variable declaration in a class
//         even when "extern int NAMESIZE;" etc. is included to the top of these
//         files.
#define COMMANDSIZE 20
//#define NAMESIZE 3
#define PASSWORDSIZE 10
#define BUFSIZE 1024
//////////////////////////////////////////////////////////////////////////////

// Global defines
#define SERVERLOGINPORT 10000

// Global client variables
extern char gServerAddress[];
extern char gUsername[];
